<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<!-- CSS 文件 ，不要删，不够自己添加 -->
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../css/bootstrap-table.min.css">
<link rel="stylesheet" href="../assets/css/azzara.min.css">
<link rel="stylesheet" href="../assets/css/demo.css">
<link rel="stylesheet" href="css/buttonlocation.css">
<body>

    <!--这里选择的是80%的容器，如果需要100%的话，自己修改一下-->
    <div class="container div1">
        <!--内容在这里面添加就好了-->
        <div>
            其中正在执行的生产派工单总数：<span id="zhixing" style="color: red"></span> 例<br>
            其中完成的生产派工单总数：<span id="wancheng" style="color: green"></span> 例
        </div>
        <form class="form-inline">
            <input class="form-control" placeholder="输入派工单编号" type="text" id="manufacture_id" style="width: 250px;">&nbsp;
            <input type="button" class="btn btn-primary" value=" 查 询 " onclick="queryLike()">&nbsp;
        </form>
        <table id="sccxTable"></table>
    </div>

    <div class="container div2" style="display: none;">
        派工单编号：<span style="color: green;" id="manufactureId"></span> 生产状态：
        <span style="color: green;" id="status"></span>
    </div>
    <div class="container div2" style="display: none;text-align: right;">
        <button class="btn btn-secondary" onclick="returnList()">返回查看列表</button>
    </div>
    <div class="container div2" style="display: none;border: 1px solid black">
        <h1 style="text-align: center;">生产派工单</h1>
        <form>
            <div style="width: 48%;display: inline-block">
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">工单制作人：</label>
                    <div class="col-md-9 p-0">
                        <span id="designer"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">产品编号：</label>
                    <div class="col-md-9 p-0">
                        <span id="productId"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">投产数量：</label>
                    <div class="col-md-9 p-0">
                        <span id="amount"></span>
                    </div>
                </div>

            </div>
            <div style="width: 48%;display: inline-block">

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">出库单编号：</label>
                    <div class="col-md-9 p-0">
                        <span></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">产品名称：</label>
                    <div class="col-md-9 p-0">
                        <span id="productName"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">合格数量：</label>
                    <div class="col-md-9 p-0">
                        <span id="testedAmount"></span>
                    </div>
                </div>

            </div>
            <table class="table table-bordered table1">
                <tr>
                    <th>序号</th>
                    <th>工序状态</th>
                    <th>工序名称</th>
                    <th>设计工时成本(元)</th>
                    <th>实际工时成本</th>
                    <th>设计物料成本(元)</th>
                    <th>实际物料成本</th>
                    <th></th>
                </tr>
                <tbody id="tbodyForTr">

                </tbody>
            </table>
            <div style="width: 48%;display: inline-block">
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">设计工时总成本(元)：</label>
                    <div class="col-md-9 p-0">
                        <span id="labourCostPriceSum"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">实际工时总成本(元)：</label>
                    <div class="col-md-9 p-0">
                        <span id="realLabourCostPriceSum"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">登记人：</label>
                    <div class="col-md-9 p-0">
                        <span id="register"></span>
                    </div>
                </div>
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">复核人：</label>
                    <div class="col-md-9 p-0">
                        <span id="checker"></span>
                    </div>
                </div>
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">备注：</label>
                    <div class="col-md-9 p-0">
                        <span id="remark"></span>
                    </div>
                </div>

            </div>
            <div style="width: 48%;display: inline-block">

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">设计物料总成本(元)：</label>
                    <div class="col-md-9 p-0">
                        <span id="moduleCostPriceSum"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">实际物料总成本(元)：</label>
                    <div class="col-md-9 p-0">
                        <span id="realModuleCostPriceSum"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">登记时间：</label>
                    <div class="col-md-9 p-0">
                        <span id="registerTime"></span>
                    </div>
                </div>
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">复核时间：</label>
                    <div class="col-md-9 p-0">
                        <span id="checkTime"></span>
                    </div>
                </div>

            </div>

        </form>
    </div>


    <!--js用到的包，不够在自己添加-->
<script src="../js/jquery.3.2.1.min.js"></script>
<script src="../js/popper.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootstrap-table.min.js"></script>
<script src="../js/bootstrap-table-zh-CN.min.js"></script>
<script src="../js/common.js"></script>
<script src="js/sccx.js"></script>
</body>
</html>